useblocks 1.1.85-dev.7 → 1.1.85-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/js/{discussHandlers.C5qc-xPl.js → discussHandlers.BuuVtU3Y.js} +5 -5
- package/iframe/js/iframe-eblock.body.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.body.js +2 -2
- package/iframe/js/iframe.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Custom/FormPanel/FormSection/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Custom/Inputs/ColorPickerInput/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Custom/Inputs/ControlFontFamily/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Custom/Inputs/InputSelect/index.js +34 -31
- package/node_modules/useblocks-ui-kit/es/components/Custom/PanelForm/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataDisplay/Card/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataDisplay/Skeleton/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/Cascader/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/Checkbox/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/ColorPicker/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/DatePicker/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/Form/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/Input/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/InputNumber/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/InputOTP/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/Password/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/Radio/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/SearchInput/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/Switch/index.js +2 -2
- package/node_modules/useblocks-ui-kit/es/components/DataEntry/TextArea/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Feedback/Alert/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Feedback/Popconfirm/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Feedback/Spin/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Feedback/Tooltip/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/General/Button/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Layout/Divider/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Layout/Row/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Layout/Space/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Navigation/FloatButton/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Navigation/Segmented/index.js +1 -1
- package/node_modules/useblocks-ui-kit/es/components/Navigation/Tabs/index.js +1 -1
- package/node_modules/useblocks-ui-kit/package.json +1 -1
- package/package.json +2 -2
- package/runtime/react/index.js +1 -1
- package/static/core/{b49f995f.js → 06d19668.js} +3 -3
- package/static/core/{51a46897.js → 13c7b13a.js} +1 -1
- package/static/core/{fdfb1e94.js → 1afe0f9c.js} +1 -1
- package/static/core/{8035d07f.js → 28160edc.js} +1 -1
- package/static/core/{6a939bac.js → 3d7934fb.js} +1 -1
- package/static/core/{53bcd609.js → 3df10afa.js} +8 -8
- package/static/core/{e2699a48.js → 41028939.js} +1 -1
- package/static/core/{7f91ed03.js → 45eb9af1.js} +1 -1
- package/static/core/{60f7aa8d.js → 48a8ba9d.js} +1 -1
- package/static/core/{740a4f32.js → 49a8dc9c.js} +1 -1
- package/static/core/{284b592e.js → 59cfe4a0.js} +1 -1
- package/static/core/{ec4827f1.js → 778aee63.js} +1 -1
- package/static/core/{c28968c1.js → 799f4d8e.js} +1 -1
- package/static/core/{77d63e01.js → 7c047ede.js} +1 -1
- package/static/core/{9ea82ab5.js → 982730aa.js} +1 -1
- package/static/core/{23f020c5.js → a46eae76.js} +1 -1
- package/static/core/{fc390885.js → b165db74.js} +1 -1
- package/static/core/{991b35ff.js → cb42ad65.js} +1 -1
- package/static/core/{7d627bff.js → db82c42b.js} +1 -1
- package/static/core/{1bdeb37f.js → df189a9d.js} +1 -1
- package/static/core/{74c1d64b.js → f1478faf.js} +1 -1
- package/static/core/{6ff64eea.js → f1498d3c.js} +1 -1
- package/static/core/{ea93d0cd.js → f8d889a1.js} +2 -2
- package/static/core/{78b1e678.js → fa60c7fb.js} +1 -1
- package/static/core/{d2bb1c0d.js → ff43365e.js} +1 -1
- package/static/esm/349f9e2c.js +1 -0
- package/static/umd-runtime/runtime.js +1 -1
- package/static/umd-runtime/ui-kit.js +2 -2
- package/{useblocks-core.46f9d75a.js → useblocks-core.ee20cf1c.js} +15 -15
- package/useblocks-esm.js +10 -10
- package/{useblocks-po.46f9d75a.js → useblocks-po.ee20cf1c.js} +1 -1
- package/useblocks.d.ts +9 -2
- package/useblocks.js +12 -12
- package/vite/index.cjs +38 -0
- package/vite/index.js +38 -0
- package/static/esm/ff1698e6.js +0 -1
- /package/iframe/{iframe-eblock.46f9d75a.html → iframe-eblock.ee20cf1c.html} +0 -0
- /package/iframe/{iframe.46f9d75a.html → iframe.ee20cf1c.html} +0 -0
package/README.md
CHANGED
|
@@ -173,9 +173,11 @@ leaves the editor alone and only takes its own subscriptions with it.
|
|
|
173
173
|
Between binding and `ready` the email may not be shown yet. If you need the shown document — a
|
|
174
174
|
`getEmailSnapshot()`, for example — await `ready` first.
|
|
175
175
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
one.
|
|
176
|
+
Another `create()` or `init()` into the same element reuses its editor with the new options (waiting for
|
|
177
|
+
a start still in progress): both calls succeed and the editor belongs to the latest
|
|
178
|
+
one. From then on the earlier handle is not the owner: it stops receiving events, and its `destroy()` only
|
|
179
|
+
detaches it and leaves the editor alone. `destroy()` of the latest handle destroys the editor, even before
|
|
180
|
+
its `ready`.
|
|
179
181
|
|
|
180
182
|
An initialisation error arrives as a `ready` rejection. If you create a handle and never await
|
|
181
183
|
`ready`, such an error surfaces in the console as unhandled — on purpose, otherwise there is no way to
|
|
@@ -529,7 +531,7 @@ See typings (**`ExportedApi.DataMixin.Events`**) — includes for example **`han
|
|
|
529
531
|
| handleDestroy | Destroy lifecycle |
|
|
530
532
|
| handleLoad | Instance ready hook |
|
|
531
533
|
| handleLoadImage | Image upload helpers & proxies |
|
|
532
|
-
| handleNotify | Generic notification
|
|
534
|
+
| handleNotify | Generic notification. Among errors: `TEMPLATE_READ_ERROR` (`data: { templateId }`) — the template named by `templateId` could not be read and the email opened without it. Sent once per template for the editor's lifetime; the event has no title and the editor shows no toast for it — show your own if the user should know. |
|
|
533
535
|
| handleError | Error toast hook |
|
|
534
536
|
| handleSuccess | Success toast hook |
|
|
535
537
|
| handleTestEmailSend | Send test mail |
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"src": "../packages/html2amp/rules.json",
|
|
12
12
|
"isDynamicEntry": true
|
|
13
13
|
},
|
|
14
|
-
"_discussHandlers.
|
|
15
|
-
"file": "js/discussHandlers.
|
|
14
|
+
"_discussHandlers.BuuVtU3Y.js": {
|
|
15
|
+
"file": "js/discussHandlers.BuuVtU3Y.js",
|
|
16
16
|
"name": "discussHandlers",
|
|
17
17
|
"imports": [
|
|
18
18
|
"_rolldown-runtime.BRlIiq3h.js"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"src": "iframe-eblock.html",
|
|
40
40
|
"isEntry": true,
|
|
41
41
|
"imports": [
|
|
42
|
-
"_discussHandlers.
|
|
42
|
+
"_discussHandlers.BuuVtU3Y.js",
|
|
43
43
|
"_typograf.all.BbXdyfMT.js"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"isEntry": true,
|
|
51
51
|
"imports": [
|
|
52
52
|
"_rolldown-runtime.BRlIiq3h.js",
|
|
53
|
-
"_discussHandlers.
|
|
53
|
+
"_discussHandlers.BuuVtU3Y.js"
|
|
54
54
|
],
|
|
55
55
|
"dynamicImports": [
|
|
56
56
|
"_typograf.all.BbXdyfMT.js"
|